package com.huawei.hms.framework.network.restclient.hwhttp.dns.dnresolver;

import com.huawei.hms.framework.network.restclient.hwhttp.dns.DNManager$ResolveTriggerType;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.dnresolver.DNResolver.DefaultDNResolverCallback;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.dnresolver.dnkeeper.DomainResult;

public interface Dns {
    public static final Dns DNKEEPER = new Dns() {
        public DomainResult lookup(String str) {
            return DNResolverManager.queryHostSync(new DNKeeperResolver(str, new DefaultDNResolverCallback()));
        }
    };
    public static final Dns FILE_CACHE = new Dns() {
        public DomainResult lookup(String str) {
            return DNResolverManager.queryHostSync(new FileCacheResolver(str));
        }
    };
    public static final Dns LOCAL_DNS = new Dns() {
        public DomainResult lookup(String str) {
            return DNResolverManager.queryHostSync(new LocalDNSResolver(str, DNManager$ResolveTriggerType.DNS_SYNC_QUERY, new DefaultDNResolverCallback()));
        }
    };
    public static final String TAG = "Dns";

    DomainResult lookup(String str);
}
